<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {"name" : "张三", "age" : 12, "score" : {"ch" : 79, "ma" : 86, "en" : 83}}
        // console.log({...obj})
        // console.log({name, age, score:{ch}, score:{ma}, score:{en}} = obj)

        let arr1 = [2, 2, 3, 4, [5, 6], "7", {"num" : 8}, function () {return 9}]
        const s = new Set(arr1)
        // console.log(s)
        // s.add({"num" : 10})
        // s.delete(8)
        // s.forEach(
        //     item => console.log(item)
        // )

        const m = new Map([[3, 4], [5, "abc"], [function(){}, [4,5]], [obj, {"name" : "张三"}]])
        m.set("name","张三")
        // console.log(m)
        // m.forEach(item => console.log(item))

        console.log(Array.from(s))
        console.log(Array.from(m))
    </script>
</body>
</html>